package com.components;

import com.services.interfaces.IInitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/6/9.
 */
@Component
public class ApplicationStartingTask
        implements ApplicationRunner {
//
//    @Autowired
//    private IInitService initService;


    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
//        this.initService.initUserDbData();
//        this.initService.initPermissionDbData();
//        this.initService.initRoleDbData();
//        this.initService.initMappingDbData();
    }
}
